package cn.hwadee.muying.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import cn.hwadee.muying.commons.base.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 回访记录
 * </p>
 *
 * @author Mankind
 * @since 2018-08-06
 */
@TableName("return_visit")
public class ReturnVisit extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 所属机构id
     */
    @TableField("org_id")
        
    private Long orgId;
    /**
     * 回访用户id
     */
    @TableField("target_id")
        
    private Long targetId;
    /**
     * 发起者id
     */
    @TableField("caller_id")
        
    private Long callerId;
    /**
     * 回访日期
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("visit_date")
    private Date visitDate;
    /**
     * 沟通内容
     */
        
    private String content;
    /**
     * 回访用户类型
     */
    private Integer type;

    @TableField(exist = false)
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Long getTargetId() {
        return targetId;
    }

    public void setTargetId(Long targetId) {
        this.targetId = targetId;
    }

    public Long getCallerId() {
        return callerId;
    }

    public void setCallerId(Long callerId) {
        this.callerId = callerId;
    }

    public Date getVisitDate() {
        return visitDate;
    }

    public void setVisitDate(Date visitDate) {
        this.visitDate = visitDate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public static final String ORG_ID = "org_id";

    public static final String TARGET_ID = "target_id";

    public static final String CALLER_ID = "caller_id";

    public static final String VISIT_DATE = "visit_date";

    public static final String CONTENT = "content";

    public static final String TYPE = "type";

    @Override
    public String toString() {
        return "ReturnVisit{" +
                ", orgId=" + orgId +
                ", targetId=" + targetId +
                ", callerId=" + callerId +
                ", visitDate=" + visitDate +
                ", content=" + content +
                ", type=" + type +
        "}";
    }
}
